.music-generation-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px 40px;
  position: relative;
}

/* 顶部导航按钮 */
.top-nav-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1000;
}

.nav-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.return-btn {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 142, 142, 0.8));
  border-color: rgba(255, 107, 107, 0.5);
}

.results-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  border-color: rgba(102, 126, 234, 0.5);
}

.nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* 顶部介绍 */
.header-section {
  height: 12vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 20px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.feature-highlights {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* 主内容区域 */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-desc {
  opacity: 0.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.card-title .icon {
  font-size: 2rem;
}

/* 翻译卡片样式 */
.translation-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-section, .result-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-weight: bold;
  font-size: 1.1rem;
}

.input-group textarea {
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.input-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.char-count {
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.7;
}

.translate-actions, .generate-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.translate-btn, .generate-btn, .copy-btn, .use-btn, .clear-btn {
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.translate-btn, .generate-btn {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  color: white;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.use-btn {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
  color: white;
}

.clear-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.translate-btn:hover:not(:disabled), .generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.translate-btn:disabled, .generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.language-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

.hint-icon {
  font-size: 1.1rem;
}

/* 高级设置样式 */
.advanced-settings {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 20px;
}

.settings-toggle {
  cursor: pointer;
  padding: 10px 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advanced-content {
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  cursor: pointer;
}

.slider-value {
  font-weight: bold;
  min-width: 40px;
  text-align: center;
}

.slider-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 5px;
}

/* 结果区域样式 */
.results-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.results-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.empty-state p {
  opacity: 0.6;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.file-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.file-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.file-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.file-name {
  font-size: 1.1rem;
  margin-bottom: 10px;
  word-break: break-all;
}

.file-size, .file-time {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

.file-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 15px;
}

.file-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-preview, .btn-download, .btn-refresh {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-preview {
  background: #3498db;
  color: white;
}

.btn-download {
  background: #2ecc71;
  color: white;
}

.btn-refresh {
  background: #f39c12;
  color: white;
  margin: 20px auto;
  display: block;
  padding: 12px 30px;
  font-size: 16px;
}

.btn-preview:hover, .btn-download:hover, .btn-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 进度条样式 */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.processing-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.music-spinner {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 0 auto 20px;
}

.spinner-wave {
  width: 8px;
  height: 30px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}

.spinner-wave:nth-child(1) { animation-delay: -1.2s; }
.spinner-wave:nth-child(2) { animation-delay: -1.0s; }
.spinner-wave:nth-child(3) { animation-delay: -0.8s; }
.spinner-wave:nth-child(4) { animation-delay: -0.6s; }

@keyframes wave {
  0%, 40%, 100% { transform: scaleY(0.4); }
  20% { transform: scaleY(1); }
}

.processing-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.progress-bar {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .main-content {
    padding: 0 10px;
  }
  
  .tool-card {
    padding: 25px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .translate-actions, .generate-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .translate-btn, .generate-btn {
    width: 100%;
  }
  
  .file-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-section {
    height: auto;
    padding: 20px 10px;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
}
